package org.dromara.lsc.domain.bo;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import org.dromara.lsc.domain.DatasetLsc;

/**
 * 【请填写功能名称】业务对象 dataset_lsc
 *
 * @author Lion Li
 * @date 2023-12-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = DatasetLsc.class, reverseConvertGenerate = false)
public class DatasetLscBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 数据名称
     */
    @NotBlank(message = "数据名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String dataName;

    /**
     * 数据格式
     */
    @NotNull(message = "数据格式不能为空", groups = { AddGroup.class, EditGroup.class })
    private String dataType;

    /**
     * 预处理状态
     */
    @NotNull(message = "预处理状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long status;

    /**
     * 文件名
     */
    @NotBlank(message = "文件名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String dataFile;

    /**
     * 数据大小
     */
    @NotNull(message = "数据大小不能为空", groups = { AddGroup.class, EditGroup.class })
    private String dataSize;

    /**
     * 文件类型
     */
    @NotNull(message = "文件类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileType;

    /**
     * 运行周期
     */
    @NotNull(message = "文件类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long runCircles;

}
